from sqlalchemy import Column, String, Integer,DateTime
from DataBase.DataBaseConnect import DBConnect

class PackageInfo(DBConnect.Base):
    #Base作为被继承的类
    __tablename__ = 'package_info'
    id = Column(Integer,primary_key=True)
    app_package = Column(String(128),nullable=False,index=True)
    app_activity = Column(String(128),nullable=False,index=True)
    end = Column(String(20),nullable=False,index=True)
    del_flg = Column(String(1), nullable=False, index=True)
    create_time = Column(DateTime(), nullable=False, index=True)
    update_time = Column(DateTime(), nullable=False, index=True)
    app_simple = Column(String(20), nullable=False, index=True)